package com.example.qianwen.service.Files.impl;

import com.example.qianwen.mapper.FilesMapper;
import com.example.qianwen.service.Files.IFilesService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;

@Service
public class FilesService implements IFilesService {
    @Resource
    private FilesMapper filesMapper;

    @Transactional()//指向事务
    public Integer insertFile(String  filesage,String filesname){
        return filesMapper.insert(filesage,filesname);

    }
}
